package cn.zjweu.domain;

/*
 * 用户表
 * */
public class User {
    /*用户ID索引*/
    private Integer userId;
    /*用户名*/
    private String username;
    /*密码*/
    private String password;
    /*真实姓名*/
    private String trueName;
    /*联系电话*/
    private String telephone;
    /*所在城市*/
    private String city;
    /*地址*/
    private String address;

    public User() {
    }

    public User(String username, String password, String trueName, String telephone, String city, String address) {
        this.username = username;
        this.password = password;
        this.trueName = trueName;
        this.telephone = telephone;
        this.city = city;
        this.address = address;
    }

    public User(Integer userId, String username, String password, String trueName, String telephone, String city, String address) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.trueName = trueName;
        this.telephone = telephone;
        this.city = city;
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", trueName='" + trueName + '\'' +
                ", telephone='" + telephone + '\'' +
                ", city='" + city + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
